package org.mfoyou.agent.common.dao.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class HuawuServiceComponentExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer limitStart;

    protected Integer limitEnd;

    public HuawuServiceComponentExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimitStart(Integer limitStart) {
        this.limitStart=limitStart;
    }

    public Integer getLimitStart() {
        return limitStart;
    }

    public void setLimitEnd(Integer limitEnd) {
        this.limitEnd=limitEnd;
    }

    public Integer getLimitEnd() {
        return limitEnd;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andComponentIdIsNull() {
            addCriterion("component_id is null");
            return (Criteria) this;
        }

        public Criteria andComponentIdIsNotNull() {
            addCriterion("component_id is not null");
            return (Criteria) this;
        }

        public Criteria andComponentIdEqualTo(Integer value) {
            addCriterion("component_id =", value, "componentId");
            return (Criteria) this;
        }

        public Criteria andComponentIdNotEqualTo(Integer value) {
            addCriterion("component_id <>", value, "componentId");
            return (Criteria) this;
        }

        public Criteria andComponentIdGreaterThan(Integer value) {
            addCriterion("component_id >", value, "componentId");
            return (Criteria) this;
        }

        public Criteria andComponentIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("component_id >=", value, "componentId");
            return (Criteria) this;
        }

        public Criteria andComponentIdLessThan(Integer value) {
            addCriterion("component_id <", value, "componentId");
            return (Criteria) this;
        }

        public Criteria andComponentIdLessThanOrEqualTo(Integer value) {
            addCriterion("component_id <=", value, "componentId");
            return (Criteria) this;
        }

        public Criteria andComponentIdIn(List<Integer> values) {
            addCriterion("component_id in", values, "componentId");
            return (Criteria) this;
        }

        public Criteria andComponentIdNotIn(List<Integer> values) {
            addCriterion("component_id not in", values, "componentId");
            return (Criteria) this;
        }

        public Criteria andComponentIdBetween(Integer value1, Integer value2) {
            addCriterion("component_id between", value1, value2, "componentId");
            return (Criteria) this;
        }

        public Criteria andComponentIdNotBetween(Integer value1, Integer value2) {
            addCriterion("component_id not between", value1, value2, "componentId");
            return (Criteria) this;
        }

        public Criteria andComponentPicIsNull() {
            addCriterion("component_pic is null");
            return (Criteria) this;
        }

        public Criteria andComponentPicIsNotNull() {
            addCriterion("component_pic is not null");
            return (Criteria) this;
        }

        public Criteria andComponentPicEqualTo(String value) {
            addCriterion("component_pic =", value, "componentPic");
            return (Criteria) this;
        }

        public Criteria andComponentPicNotEqualTo(String value) {
            addCriterion("component_pic <>", value, "componentPic");
            return (Criteria) this;
        }

        public Criteria andComponentPicGreaterThan(String value) {
            addCriterion("component_pic >", value, "componentPic");
            return (Criteria) this;
        }

        public Criteria andComponentPicGreaterThanOrEqualTo(String value) {
            addCriterion("component_pic >=", value, "componentPic");
            return (Criteria) this;
        }

        public Criteria andComponentPicLessThan(String value) {
            addCriterion("component_pic <", value, "componentPic");
            return (Criteria) this;
        }

        public Criteria andComponentPicLessThanOrEqualTo(String value) {
            addCriterion("component_pic <=", value, "componentPic");
            return (Criteria) this;
        }

        public Criteria andComponentPicLike(String value) {
            addCriterion("component_pic like", value, "componentPic");
            return (Criteria) this;
        }

        public Criteria andComponentPicNotLike(String value) {
            addCriterion("component_pic not like", value, "componentPic");
            return (Criteria) this;
        }

        public Criteria andComponentPicIn(List<String> values) {
            addCriterion("component_pic in", values, "componentPic");
            return (Criteria) this;
        }

        public Criteria andComponentPicNotIn(List<String> values) {
            addCriterion("component_pic not in", values, "componentPic");
            return (Criteria) this;
        }

        public Criteria andComponentPicBetween(String value1, String value2) {
            addCriterion("component_pic between", value1, value2, "componentPic");
            return (Criteria) this;
        }

        public Criteria andComponentPicNotBetween(String value1, String value2) {
            addCriterion("component_pic not between", value1, value2, "componentPic");
            return (Criteria) this;
        }

        public Criteria andComponentNameIsNull() {
            addCriterion("component_name is null");
            return (Criteria) this;
        }

        public Criteria andComponentNameIsNotNull() {
            addCriterion("component_name is not null");
            return (Criteria) this;
        }

        public Criteria andComponentNameEqualTo(String value) {
            addCriterion("component_name =", value, "componentName");
            return (Criteria) this;
        }

        public Criteria andComponentNameNotEqualTo(String value) {
            addCriterion("component_name <>", value, "componentName");
            return (Criteria) this;
        }

        public Criteria andComponentNameGreaterThan(String value) {
            addCriterion("component_name >", value, "componentName");
            return (Criteria) this;
        }

        public Criteria andComponentNameGreaterThanOrEqualTo(String value) {
            addCriterion("component_name >=", value, "componentName");
            return (Criteria) this;
        }

        public Criteria andComponentNameLessThan(String value) {
            addCriterion("component_name <", value, "componentName");
            return (Criteria) this;
        }

        public Criteria andComponentNameLessThanOrEqualTo(String value) {
            addCriterion("component_name <=", value, "componentName");
            return (Criteria) this;
        }

        public Criteria andComponentNameLike(String value) {
            addCriterion("component_name like", value, "componentName");
            return (Criteria) this;
        }

        public Criteria andComponentNameNotLike(String value) {
            addCriterion("component_name not like", value, "componentName");
            return (Criteria) this;
        }

        public Criteria andComponentNameIn(List<String> values) {
            addCriterion("component_name in", values, "componentName");
            return (Criteria) this;
        }

        public Criteria andComponentNameNotIn(List<String> values) {
            addCriterion("component_name not in", values, "componentName");
            return (Criteria) this;
        }

        public Criteria andComponentNameBetween(String value1, String value2) {
            addCriterion("component_name between", value1, value2, "componentName");
            return (Criteria) this;
        }

        public Criteria andComponentNameNotBetween(String value1, String value2) {
            addCriterion("component_name not between", value1, value2, "componentName");
            return (Criteria) this;
        }

        public Criteria andComponentStateIsNull() {
            addCriterion("component_state is null");
            return (Criteria) this;
        }

        public Criteria andComponentStateIsNotNull() {
            addCriterion("component_state is not null");
            return (Criteria) this;
        }

        public Criteria andComponentStateEqualTo(Integer value) {
            addCriterion("component_state =", value, "componentState");
            return (Criteria) this;
        }

        public Criteria andComponentStateNotEqualTo(Integer value) {
            addCriterion("component_state <>", value, "componentState");
            return (Criteria) this;
        }

        public Criteria andComponentStateGreaterThan(Integer value) {
            addCriterion("component_state >", value, "componentState");
            return (Criteria) this;
        }

        public Criteria andComponentStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("component_state >=", value, "componentState");
            return (Criteria) this;
        }

        public Criteria andComponentStateLessThan(Integer value) {
            addCriterion("component_state <", value, "componentState");
            return (Criteria) this;
        }

        public Criteria andComponentStateLessThanOrEqualTo(Integer value) {
            addCriterion("component_state <=", value, "componentState");
            return (Criteria) this;
        }

        public Criteria andComponentStateIn(List<Integer> values) {
            addCriterion("component_state in", values, "componentState");
            return (Criteria) this;
        }

        public Criteria andComponentStateNotIn(List<Integer> values) {
            addCriterion("component_state not in", values, "componentState");
            return (Criteria) this;
        }

        public Criteria andComponentStateBetween(Integer value1, Integer value2) {
            addCriterion("component_state between", value1, value2, "componentState");
            return (Criteria) this;
        }

        public Criteria andComponentStateNotBetween(Integer value1, Integer value2) {
            addCriterion("component_state not between", value1, value2, "componentState");
            return (Criteria) this;
        }

        public Criteria andComponentDetailIsNull() {
            addCriterion("component_detail is null");
            return (Criteria) this;
        }

        public Criteria andComponentDetailIsNotNull() {
            addCriterion("component_detail is not null");
            return (Criteria) this;
        }

        public Criteria andComponentDetailEqualTo(String value) {
            addCriterion("component_detail =", value, "componentDetail");
            return (Criteria) this;
        }

        public Criteria andComponentDetailNotEqualTo(String value) {
            addCriterion("component_detail <>", value, "componentDetail");
            return (Criteria) this;
        }

        public Criteria andComponentDetailGreaterThan(String value) {
            addCriterion("component_detail >", value, "componentDetail");
            return (Criteria) this;
        }

        public Criteria andComponentDetailGreaterThanOrEqualTo(String value) {
            addCriterion("component_detail >=", value, "componentDetail");
            return (Criteria) this;
        }

        public Criteria andComponentDetailLessThan(String value) {
            addCriterion("component_detail <", value, "componentDetail");
            return (Criteria) this;
        }

        public Criteria andComponentDetailLessThanOrEqualTo(String value) {
            addCriterion("component_detail <=", value, "componentDetail");
            return (Criteria) this;
        }

        public Criteria andComponentDetailLike(String value) {
            addCriterion("component_detail like", value, "componentDetail");
            return (Criteria) this;
        }

        public Criteria andComponentDetailNotLike(String value) {
            addCriterion("component_detail not like", value, "componentDetail");
            return (Criteria) this;
        }

        public Criteria andComponentDetailIn(List<String> values) {
            addCriterion("component_detail in", values, "componentDetail");
            return (Criteria) this;
        }

        public Criteria andComponentDetailNotIn(List<String> values) {
            addCriterion("component_detail not in", values, "componentDetail");
            return (Criteria) this;
        }

        public Criteria andComponentDetailBetween(String value1, String value2) {
            addCriterion("component_detail between", value1, value2, "componentDetail");
            return (Criteria) this;
        }

        public Criteria andComponentDetailNotBetween(String value1, String value2) {
            addCriterion("component_detail not between", value1, value2, "componentDetail");
            return (Criteria) this;
        }

        public Criteria andComponentPriceIsNull() {
            addCriterion("component_price is null");
            return (Criteria) this;
        }

        public Criteria andComponentPriceIsNotNull() {
            addCriterion("component_price is not null");
            return (Criteria) this;
        }

        public Criteria andComponentPriceEqualTo(String value) {
            addCriterion("component_price =", value, "componentPrice");
            return (Criteria) this;
        }

        public Criteria andComponentPriceNotEqualTo(String value) {
            addCriterion("component_price <>", value, "componentPrice");
            return (Criteria) this;
        }

        public Criteria andComponentPriceGreaterThan(String value) {
            addCriterion("component_price >", value, "componentPrice");
            return (Criteria) this;
        }

        public Criteria andComponentPriceGreaterThanOrEqualTo(String value) {
            addCriterion("component_price >=", value, "componentPrice");
            return (Criteria) this;
        }

        public Criteria andComponentPriceLessThan(String value) {
            addCriterion("component_price <", value, "componentPrice");
            return (Criteria) this;
        }

        public Criteria andComponentPriceLessThanOrEqualTo(String value) {
            addCriterion("component_price <=", value, "componentPrice");
            return (Criteria) this;
        }

        public Criteria andComponentPriceLike(String value) {
            addCriterion("component_price like", value, "componentPrice");
            return (Criteria) this;
        }

        public Criteria andComponentPriceNotLike(String value) {
            addCriterion("component_price not like", value, "componentPrice");
            return (Criteria) this;
        }

        public Criteria andComponentPriceIn(List<String> values) {
            addCriterion("component_price in", values, "componentPrice");
            return (Criteria) this;
        }

        public Criteria andComponentPriceNotIn(List<String> values) {
            addCriterion("component_price not in", values, "componentPrice");
            return (Criteria) this;
        }

        public Criteria andComponentPriceBetween(String value1, String value2) {
            addCriterion("component_price between", value1, value2, "componentPrice");
            return (Criteria) this;
        }

        public Criteria andComponentPriceNotBetween(String value1, String value2) {
            addCriterion("component_price not between", value1, value2, "componentPrice");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIsNull() {
            addCriterion("modify_time is null");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIsNotNull() {
            addCriterion("modify_time is not null");
            return (Criteria) this;
        }

        public Criteria andModifyTimeEqualTo(Date value) {
            addCriterion("modify_time =", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotEqualTo(Date value) {
            addCriterion("modify_time <>", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeGreaterThan(Date value) {
            addCriterion("modify_time >", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("modify_time >=", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeLessThan(Date value) {
            addCriterion("modify_time <", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeLessThanOrEqualTo(Date value) {
            addCriterion("modify_time <=", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIn(List<Date> values) {
            addCriterion("modify_time in", values, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotIn(List<Date> values) {
            addCriterion("modify_time not in", values, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeBetween(Date value1, Date value2) {
            addCriterion("modify_time between", value1, value2, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotBetween(Date value1, Date value2) {
            addCriterion("modify_time not between", value1, value2, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andAgentIdIsNull() {
            addCriterion("agent_id is null");
            return (Criteria) this;
        }

        public Criteria andAgentIdIsNotNull() {
            addCriterion("agent_id is not null");
            return (Criteria) this;
        }

        public Criteria andAgentIdEqualTo(Integer value) {
            addCriterion("agent_id =", value, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdNotEqualTo(Integer value) {
            addCriterion("agent_id <>", value, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdGreaterThan(Integer value) {
            addCriterion("agent_id >", value, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("agent_id >=", value, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdLessThan(Integer value) {
            addCriterion("agent_id <", value, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdLessThanOrEqualTo(Integer value) {
            addCriterion("agent_id <=", value, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdIn(List<Integer> values) {
            addCriterion("agent_id in", values, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdNotIn(List<Integer> values) {
            addCriterion("agent_id not in", values, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdBetween(Integer value1, Integer value2) {
            addCriterion("agent_id between", value1, value2, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdNotBetween(Integer value1, Integer value2) {
            addCriterion("agent_id not between", value1, value2, "agentId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}